/<template>
  <div id="stuSystem">
    <el-container>
      <el-header>
        <div id="webTitle">
          <span @click='$router.push("/login")'>AI</span>
          Sam9029 Student System
        </div>
        <UserInfo/>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <Menu />
        </el-aside>
        <el-container>
          <el-main>
            <!-- 减少组件切换的刷新操作---不针对stulist -->
            <keep-alive>
              <!-- //注意是 $route  -->
              <router-view v-if="$route.meta.keepAlive"></router-view>
            </keep-alive>
            <router-view v-if="!$route.meta.keepAlive"></router-view>
          </el-main>
          <el-footer>
            all copyright reserved sam9029
          </el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Menu from "./Menu.vue";
import UserInfo from "./UserInfo.vue";

export default {
  components: {
    Menu,
    UserInfo
},
};
</script>
 
<style lang="scss" scoped>

div#stuSystem {
  width: 100%;
  height: 100%;
}
.el-container {
  width: 100%;
  height: 100%;
}
.el-header {
  background-color: #409eff;
  color: rgb(5, 5, 5);
  text-align: center;
  line-height: 60px;
  font-size: 1.5rem;
  display: flex;
  justify-content: space-between;

  #webTitle{
    flex: 1;
  }
}
.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}
.el-main {
  width: 100%;
  background-color: #ffffff;
  color: #333;
  text-align: center;
}
.el-footer {
  background-color: #000000;
  color: rgb(255, 255, 255);
  text-align: center;
  line-height: 60px;
}
</style>